/*
 * @Author: taoyuqing
 * @Date: 2022-12-31 16:24:26
 * @Description: 渐变色容器
 */
import 'package:flutter/material.dart';

class VipContentBox extends StatelessWidget {
  final Widget? child;
  final Alignment? alignment;
  final double? width;
  final double? height;
  final EdgeInsets? padding;
  final EdgeInsets? margin;
  const VipContentBox(
      {super.key, this.child, this.alignment, this.width, this.padding, this.margin, this.height});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: width,
      height: height,
      alignment: alignment,
      margin: margin,
      padding: padding ?? EdgeInsets.only(top: 20, bottom: 20),
      child: child,
      decoration: BoxDecoration(
        borderRadius: const BorderRadius.all(Radius.circular(8.0)),
        gradient: LinearGradient(
          colors: [Color(0xFF8357FF), Color(0xFF4F25C3)],
          begin: Alignment.topCenter,
          end: Alignment.bottomCenter,
        ),
      ),
    );
  }
}
